package com.tjetc.mapper;

import com.tjetc.domain.Admin;
import com.tjetc.domain.Admins;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface AdminsMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Admin record);

    int insertSelective(Admin record);

    Admin selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);

    Admin getAdminByName(String AdminsName);

    List<Admin> getAdminList();
    @Select("select * from admins where username=#{username}")
    Admins findByName(String username);
}